-- GENERATED SPELL FOR [Tempest-Forge Destroyer] --


function spell0_19735(pUnit, Event) --@Charged Fist,Self--
pUnit:FullCastSpellOnTarget(36582,pUnit)
pUnit:RegisterEvent('Sorts_19735', 9500, 1)
end

function spell1_19735(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(35783,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19735', 2000, 1)
end

function Sorts_19735(pUnit, Event)
local choix_sorts_19735 = math.random(0, 1)
if choix_sorts_19735 == 0 then
pUnit:RegisterEvent('spell0_19735', 1, 1)
end
if choix_sorts_19735 == 1 then
pUnit:RegisterEvent('spell1_19735', 1, 1)
end
end

function mob19735_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19735', math.random(1500, 3000), 1)
end

function mob19735_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19735_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19735_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19735, 1, 'mob19735_Action')
RegisterUnitEvent(19735, 2, 'mob19735_Leave')
RegisterUnitEvent(19735, 3, 'mob19735_Kill')
RegisterUnitEvent(19735, 4, 'mob19735_Die')
